package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperConfigCustomerPrice implements Serializable {
    /**
     * 客户ID
     */
    private Integer cid;

    /**
     * 商品ID
     */
    private Integer gId;

    /**
     * 价格
     */
    private Integer price;

    private static final long serialVersionUID = 1L;

    /**
     * 客户ID
     */
    public Integer getCid() {
        return cid;
    }

    /**
     * 客户ID
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * 商品ID
     */
    public Integer getgId() {
        return gId;
    }

    /**
     * 商品ID
     */
    public void setgId(Integer gId) {
        this.gId = gId;
    }

    /**
     * 价格
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 价格
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cid=").append(cid);
        sb.append(", gId=").append(gId);
        sb.append(", price=").append(price);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperConfigCustomerPrice other = (SuperConfigCustomerPrice) that;
        return (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
            && (this.getgId() == null ? other.getgId() == null : this.getgId().equals(other.getgId()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getgId() == null) ? 0 : getgId().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        return result;
    }
}